package com.example.hand.springbootweb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;




@EnableJpaRepositories(basePackages ="com.example.hand.springbootweb.app.service" )
@EntityScan(basePackages ="com.example.hand.springbootweb.domain.entity" )
//@ComponentScan(basePackages = "com.example.hand.springbootweb.app.service") 如果添加，就扫不到其他组件了       controller404
@SpringBootApplication
public class SpringbootWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootWebApplication.class, args);
    }

}
